package com.serkol.ams.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;

/**
 * 
 * @TableName goods
 */
@TableName(value ="goods")
@Data
public class Goods {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String nameUg;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private Long brandId;

    /**
     * 
     */
    private Long categoryId;

    /**
     * 
     */
    private Integer quantity;

    /**
     * 
     */
    private String measure;

    /**
     * 
     */
    private String permit;

    /**
     * 
     */
    private Double weight;

    /**
     * 
     */
    private String links;

    /**
     * 
     */
    private Long publishTime;

    /**
     * 
     */
    private String goodNumber;

    /**
     * 
     */
    private Integer inventory;

    /**
     * 
     */
    private Double size;

    /**
     * 
     */
    private String colors;

    /**
     * 
     */
    private BigDecimal marketPrice;

    /**
     * 
     */
    private BigDecimal retailPrice;

    /**
     * 
     */
    private Long imageId;

    /**
     * 
     */
    private String imageIds;

    /**
     * 
     */
    private Long videoId;

    /**
     * 
     */
    private String remark;

    /**
     * 
     */
    private String remarkUg;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private String contentUg;

    /**
     * 
     */
    private Integer deleted;

    /**
     * 
     */
    private Integer cloudType;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 
     */
    private Integer isIntegral;

    /**
     * 
     */
    private Integer integral;

    /**
     * 
     */
    private Long startActiveDate;

    /**
     * 
     */
    private Long endActiveDate;

    /**
     * 
     */
    private Integer isActivty;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Goods other = (Goods) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getNameUg() == null ? other.getNameUg() == null : this.getNameUg().equals(other.getNameUg()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId()))
            && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
            && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity()))
            && (this.getMeasure() == null ? other.getMeasure() == null : this.getMeasure().equals(other.getMeasure()))
            && (this.getPermit() == null ? other.getPermit() == null : this.getPermit().equals(other.getPermit()))
            && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
            && (this.getLinks() == null ? other.getLinks() == null : this.getLinks().equals(other.getLinks()))
            && (this.getPublishTime() == null ? other.getPublishTime() == null : this.getPublishTime().equals(other.getPublishTime()))
            && (this.getGoodNumber() == null ? other.getGoodNumber() == null : this.getGoodNumber().equals(other.getGoodNumber()))
            && (this.getInventory() == null ? other.getInventory() == null : this.getInventory().equals(other.getInventory()))
            && (this.getSize() == null ? other.getSize() == null : this.getSize().equals(other.getSize()))
            && (this.getColors() == null ? other.getColors() == null : this.getColors().equals(other.getColors()))
            && (this.getMarketPrice() == null ? other.getMarketPrice() == null : this.getMarketPrice().equals(other.getMarketPrice()))
            && (this.getRetailPrice() == null ? other.getRetailPrice() == null : this.getRetailPrice().equals(other.getRetailPrice()))
            && (this.getImageId() == null ? other.getImageId() == null : this.getImageId().equals(other.getImageId()))
            && (this.getImageIds() == null ? other.getImageIds() == null : this.getImageIds().equals(other.getImageIds()))
            && (this.getVideoId() == null ? other.getVideoId() == null : this.getVideoId().equals(other.getVideoId()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getRemarkUg() == null ? other.getRemarkUg() == null : this.getRemarkUg().equals(other.getRemarkUg()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getContentUg() == null ? other.getContentUg() == null : this.getContentUg().equals(other.getContentUg()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getCloudType() == null ? other.getCloudType() == null : this.getCloudType().equals(other.getCloudType()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getIsIntegral() == null ? other.getIsIntegral() == null : this.getIsIntegral().equals(other.getIsIntegral()))
            && (this.getIntegral() == null ? other.getIntegral() == null : this.getIntegral().equals(other.getIntegral()))
            && (this.getStartActiveDate() == null ? other.getStartActiveDate() == null : this.getStartActiveDate().equals(other.getStartActiveDate()))
            && (this.getEndActiveDate() == null ? other.getEndActiveDate() == null : this.getEndActiveDate().equals(other.getEndActiveDate()))
            && (this.getIsActivty() == null ? other.getIsActivty() == null : this.getIsActivty().equals(other.getIsActivty()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getNameUg() == null) ? 0 : getNameUg().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode());
        result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
        result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
        result = prime * result + ((getMeasure() == null) ? 0 : getMeasure().hashCode());
        result = prime * result + ((getPermit() == null) ? 0 : getPermit().hashCode());
        result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
        result = prime * result + ((getLinks() == null) ? 0 : getLinks().hashCode());
        result = prime * result + ((getPublishTime() == null) ? 0 : getPublishTime().hashCode());
        result = prime * result + ((getGoodNumber() == null) ? 0 : getGoodNumber().hashCode());
        result = prime * result + ((getInventory() == null) ? 0 : getInventory().hashCode());
        result = prime * result + ((getSize() == null) ? 0 : getSize().hashCode());
        result = prime * result + ((getColors() == null) ? 0 : getColors().hashCode());
        result = prime * result + ((getMarketPrice() == null) ? 0 : getMarketPrice().hashCode());
        result = prime * result + ((getRetailPrice() == null) ? 0 : getRetailPrice().hashCode());
        result = prime * result + ((getImageId() == null) ? 0 : getImageId().hashCode());
        result = prime * result + ((getImageIds() == null) ? 0 : getImageIds().hashCode());
        result = prime * result + ((getVideoId() == null) ? 0 : getVideoId().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getRemarkUg() == null) ? 0 : getRemarkUg().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getContentUg() == null) ? 0 : getContentUg().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getCloudType() == null) ? 0 : getCloudType().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getIsIntegral() == null) ? 0 : getIsIntegral().hashCode());
        result = prime * result + ((getIntegral() == null) ? 0 : getIntegral().hashCode());
        result = prime * result + ((getStartActiveDate() == null) ? 0 : getStartActiveDate().hashCode());
        result = prime * result + ((getEndActiveDate() == null) ? 0 : getEndActiveDate().hashCode());
        result = prime * result + ((getIsActivty() == null) ? 0 : getIsActivty().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", nameUg=").append(nameUg);
        sb.append(", name=").append(name);
        sb.append(", brandId=").append(brandId);
        sb.append(", categoryId=").append(categoryId);
        sb.append(", quantity=").append(quantity);
        sb.append(", measure=").append(measure);
        sb.append(", permit=").append(permit);
        sb.append(", weight=").append(weight);
        sb.append(", links=").append(links);
        sb.append(", publishTime=").append(publishTime);
        sb.append(", goodNumber=").append(goodNumber);
        sb.append(", inventory=").append(inventory);
        sb.append(", size=").append(size);
        sb.append(", colors=").append(colors);
        sb.append(", marketPrice=").append(marketPrice);
        sb.append(", retailPrice=").append(retailPrice);
        sb.append(", imageId=").append(imageId);
        sb.append(", imageIds=").append(imageIds);
        sb.append(", videoId=").append(videoId);
        sb.append(", remark=").append(remark);
        sb.append(", remarkUg=").append(remarkUg);
        sb.append(", content=").append(content);
        sb.append(", contentUg=").append(contentUg);
        sb.append(", deleted=").append(deleted);
        sb.append(", cloudType=").append(cloudType);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", isIntegral=").append(isIntegral);
        sb.append(", integral=").append(integral);
        sb.append(", startActiveDate=").append(startActiveDate);
        sb.append(", endActiveDate=").append(endActiveDate);
        sb.append(", isActivty=").append(isActivty);
        sb.append("]");
        return sb.toString();
    }
}